package io.framework.modules.air.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.framework.common.service.impl.CrudServiceImpl;
import io.framework.modules.air.dao.AirCheckExplainDao;
import io.framework.modules.air.dto.AirCheckExplainDTO;
import io.framework.modules.air.entity.AirCheckExplainEntity;
import io.framework.modules.air.service.AirCheckExplainService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 监测数据审核情况说明
 *
 * @author Gujq email
 * @since 1.0.0 2020-06-01
 */
@Service
public class AirCheckExplainServiceImpl extends CrudServiceImpl<AirCheckExplainDao, AirCheckExplainEntity, AirCheckExplainDTO> implements AirCheckExplainService {

    @Override
    public QueryWrapper<AirCheckExplainEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<AirCheckExplainEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}